package com.mframe.persist;

import com.mframe.exception.MarsException;
import com.mframe.system.LoginInfo;

/**
 * @author cuijr
 * remark:用户登录的接口 
 */
public interface UserLoginBS {
	/**
	 * 生成部门LoginInfo
	 * 
	 * @param staffId
	 * @return
	 */
	public Object buildLoginInfo(Long staffId);

	/**
	 * 验证是否登录成功
	 * @param <T>
	 * @param userName
	 * @param userPwd
	 * @return
	 * @throws MarsException
	 */
	public <T extends LoginInfo> T validateLogin(String userName, String userPwd)
			throws MarsException;
}
